<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="java.util.Calendar"%>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/popUP.js" %>"></script>

<script language="javaScript" type="text/javascript">
  function validate()
  {
    valor = document.frmFlexValue.flexValueName.value;
    document.frmFlexValue.flexValueDescription.value = valor;
  }
</script>
 
<table width="100%"  border="0" cellspacing="0" cellpadding="0" widtd="100%">
   
  <tr align="left"> 
   <td height="25" colspan="12" align="center" class="titulosenblanco"> 
    <p>
     <STRONG>NUEVO VALOR FLEXIBLE</STRONG>
    </p>
    <p>&nbsp; </p>
   </td>
   </tr>
  
 <html:form action="/admin/createFlexValue.do"  method="post" styleId="frmFlexValue">
  <tr align="left">
   <td height="25" colspan="12" class="titulosenblanco">   
		<table width="100%" border="0" cellspacing="3" cellpadding="3" class="titulosenrojo">
     <tr>
    	<td width="28%">&nbsp;</td>
			<td width="23%" class="celdatabla"><strong>Nombre</strong> (*)&nbsp;&nbsp; 
			</td>
			<td width="46%"> 
              <html:text size= "40" styleClass="form" property="flexValueName" onblur="validate()"/>
           </td>
			<td width="3%">&nbsp;</td>
     </tr>
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Codigo</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="46%">
        <html:text size= "40" styleClass="form" property="flexValueCustomCode"/>
      </td>
		  <td width="3%">&nbsp;</td>
     </tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Vigencia</strong> (*)&nbsp;&nbsp; 
          </td>
		  <td width="46%">
        <html:select styleClass="form" property="flexValueUse" style="width:215" styleId="frmFlexValue"> 
          <html:option value = "">Seleccionar Valor</html:option>
          <html:option value="S">Si</html:option>
          <html:option value="N">No</html:option>
         </html:select>
		  </td>
		  <td width="3%">&nbsp;</td>
  </tr>
  <tr>
  <td width="28%">&nbsp;</td>
  <td class="celdatabla" width="23%"><strong>Descripcion</strong> &nbsp;&nbsp; 
  </td>
  <td width="46%"> 
   <input type="TEXT" name="flexValueDescription" readonly="readonly" style="frmFlexValue" class="form" maxlength="180" size="40"/>
   <!--<textarea name="flexValueDescription" readonly="readonly" style="frmFlexValue" cols="35" rows="5" class="form"></textarea>-->
  </td>
  <td width="3%">&nbsp;</td>
  </tr>
		  <tr> 
			<td class="celdatabla" colspan="3" align="center">&nbsp;Los campos marcados con (*) son obligatorios</td>
			<td width="3%">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4" align="center"><html:image src='<%= request.getContextPath() + "/images/b_ingresar_b1.gif" %>' border="0" value='Guardar' title='Guardar' onclick='submit;' /></td>
		  </tr>
	   </table>
    </td>
  </tr>  
 </html:form>  
<!--CALENDARIO   
<script language="JavaScript">
  var effectiveFrom = new calendar1(document.forms['frmFlexValue'].elements['flexValueEffectiveFrom'],"-");
  var effectiveUntil = new calendar1(document.forms['frmFlexValue'].elements['flexValueEffectiveUntil'],"-");
</script>-->
</table>


<p align="center">
  <html:link page="/admin/findFlexValueType.do">
    <img src="<%= request.getContextPath() + "/images/b_atras.gif" %>" width="24" height="15" border="0"/>
    <br/>
    <span class="celdaayd">Atras</span>
  </html:link>
</p>

